package com.wffz.config.redis;

import com.wffz.po.Bet;
import org.springframework.stereotype.Component;

/**
 * @author: kqyin
 * @date: 2023/1/9 16:21
 * @Description: 2s后消费的测试方法
 */
@Component("twoSecondConsumeHandler")
public class TwoSecondConsumeHandler implements RedisDelayQueueHandler<Bet> {

    @Override
    public void exec(Bet bet) {
        System.out.println("2s后输出字符串:" + bet.getPeriodCode());
    }
}
